﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace WebAPI
{
    public class DbConfig
    {
        /// <summary>
        /// 主数据库
        /// </summary>
        public string MainDB { get; set; }

        /// <summary>
        /// 是否开启多库
        /// </summary>
        public bool MutiDBEnabled { get; set; }

        /// <summary>
        /// 租库
        /// </summary>
        public List<DBS> DBS { get; set; }
    }

    public class DBS
    {
        /// <summary>
        /// 数据库ID
        /// </summary>
        public string ConnId { get; set; }

        /// <summary>
        /// 数据类型
        /// </summary>
        public int DBType { get; set; }

        /// <summary>
        /// 是否开启
        /// </summary>
        public bool Enabled { get; set; }


        /// <summary>
        /// 数据库字符串
        /// </summary>
        public string Connection { get; set; }
    }
}
